package com.sdry.mapper.zc;

import java.util.List;

import com.sdry.model.zc.ZcJzSpotCheckDetailsEntity;
import com.sdry.model.zc.ZcJzSpotCheckEntity;
import com.sdry.model.zc.ZcQueryCriteria;

/**
 * 浇铸抽检
 * @ClassName:    ZcJzSpotCheckMapper   
 * @Description:  
 * @Author:       zc   
 * @CreateDate:   2018年10月19日 上午10:43:25   
 * @Version:      v1.0
 */
public interface ZcJzSpotCheckMapper {

	/**
	 * 查询浇铸抽检单列表
	 * @param zcQueryCriteria
	 * @return
	 */
	public List<ZcJzSpotCheckEntity> selectJzSpotCheckList(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 查询浇铸抽检单列表数目
	 * @param zcQueryCriteria
	 * @return
	 */
	public int countJzSpotCheckList(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 保存浇铸抽检
	 * @param zcJzSpotCheckEntity
	 * @return
	 */
	public int insertJzSpotCheck(ZcJzSpotCheckEntity zcJzSpotCheckEntity);
	/**
	 * 删除浇铸抽检单
	 * @param id
	 * @return
	 */
	public int delJzSpotCheckArr(long id);
	/**
	 * 修改浇铸抽检单
	 * @param zcJzSpotCheckEntity
	 * @return
	 */
	public int updateJzSpotCheck(ZcJzSpotCheckEntity zcJzSpotCheckEntity);
	/**
	 * 保存浇铸抽检记录详情
	 * @param zcJzSpotCheckDetailsEntity
	 * @return
	 */
	public int insertJzSpotCheckDetails(ZcJzSpotCheckDetailsEntity zcJzSpotCheckDetailsEntity);
	/**
	 * 通过检测序号查询详情
	 * @param zcQueryCriteria
	 * @return
	 */
	public List<ZcJzSpotCheckDetailsEntity> selectJzSpotCheckDetailsListByNumber(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 通过检测序号查询详情数量
	 * @param zcQueryCriteria
	 * @return
	 */
	public int countJzSpotCheckDetailsListByNumber(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 查询浇铸抽检统计表
	 * @param zcQueryCriteria
	 * @return
	 */
	public List<ZcJzSpotCheckDetailsEntity> selectJzSpotCheckStatisticsTable(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 查询浇铸抽检统计表数量
	 * @param zcQueryCriteria
	 * @return
	 */
	public int countJzSpotCheckStatisticsTable(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 通过编码查型号
	 * @return
	 */
	public String selectPcarByNumber(String number);
}
